﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using YiSha.Business.YiDongYuan;
using YiSha.Entity.YiDongYuan;
using YiSha.Util.Extension;

namespace YiSha.Admin.Web.Controllers
{
    public class TestController : Controller
    {
        public IActionResult ResultList(string id)
        {
            var service = new DetectionResultBLL();
            var list = service.GetPageList(null, new Util.Model.Pagination()
            {
                PageIndex = 1,
                PageSize = 100,
                Sort = "testingtime",
                SortType = "desc"
            }).Result;
            ViewBag.Result = list.Data;
            return View();
        }
    }
}
